home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / JPEG20.ARJ / MAKEF~GA < prev    next >
Text File  |  1992-02-11  |  6KB  |  141 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  4. # If you have a non-ANSI compiler, makefile.unix is a better starting point.
  5.  
  6. # Read SETUP instructions before saying "make" !!
  7.  
  8. # The name of your C compiler:
  9. CC= cc
  10.  
  11. # You may need to adjust these cc options:
  12. CFLAGS= -O
  13. # In particular:
  14. #   Add -DBSD if on a pure BSD system (see jinclude.h).
  15. #   Add -DMEM_STATS to enable gathering of memory usage statistics.
  16. #   You may also want to add -DTWO_FILE_COMMANDLINE or -D switches for other
  17. #   symbols listed in jconfig.h, if you prefer not to change jconfig.h.
  18.  
  19. # Link-time cc options:
  20. LDFLAGS= 
  21.  
  22. # To link any special libraries, add the necessary -l commands here.
  23. # In particular, on some versions of HP-UX (and probably other SysV-derived
  24. # systems) there is a faster alternate malloc(3) library that you can use
  25. # by adding "-lmalloc" to this line.
  26. LDLIBS= 
  27.  
  28. # miscellaneous OS-dependent stuff
  29. LN= $(CC)    # linker
  30. RM= rm -f    # file deletion command
  31. AR= ar rc    # library (.a) file creation command
  32. AR2= ranlib    # second step in .a creation (use "touch" if not needed)
  33.  
  34.  
  35. # source files (independently compilable files)
  36. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  37.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  38.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  39.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c \
  40.         jvirtmem.c jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c \
  41.         jwrjfif.c jwrgif.c jwrppm.c jwrrle.c jwrtarga.c
  42. # files included by source files
  43. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  44. # documentation, test, and support files
  45. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  46. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  47.         makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.tc \
  48.         makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf \
  49.         makljpeg.cf
  50. OTHERFILES= ansi2knr.c config.c
  51. TESTFILES= testorig.jpg testimg.ppm testimg.jpg
  52. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(INCLUDES) $(OTHERFILES) \
  53.         $(TESTFILES)
  54. # objectfiles common to cjpeg and djpeg
  55. COMOBJECTS= jutils.o jvirtmem.o jerror.o
  56. # compression objectfiles
  57. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  58.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  59.         jrdrle.o jrdtarga.o
  60. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  61. # decompression objectfiles
  62. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  63.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  64.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  65. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  66. # These objectfiles are included in libjpeg.a
  67. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  68.  
  69.  
  70. all: cjpeg djpeg
  71. # By default, libjpeg.a is not built unless you explicitly request it.
  72. # You can add libjpeg.a to the line above if you want it built by default.
  73.  
  74.  
  75. cjpeg: $(COBJECTS)
  76.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  77.  
  78. djpeg: $(DOBJECTS)
  79.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  80.  
  81. # libjpeg.a is useful if you are including the JPEG software in a larger
  82. # program; you'd include it in your link, rather than the individual modules.
  83. libjpeg.a: $(LIBOBJECTS)
  84.     $(RM) libjpeg.a
  85.     $(AR) libjpeg.a  $(LIBOBJECTS)
  86.     $(AR2) libjpeg.a
  87.  
  88. clean:
  89.     $(RM) *.o cjpeg djpeg libjpeg.a core testout.ppm testout.jpg
  90.  
  91. distribute:
  92.     $(RM) jpegsrc.tar*
  93.     tar cvf jpegsrc.tar $(DISTFILES)
  94.     compress -v jpegsrc.tar
  95.  
  96. test: cjpeg djpeg
  97.     $(RM) testout.ppm testout.jpg
  98.     ./djpeg testorig.jpg >testout.ppm
  99.     ./cjpeg testimg.ppm >testout.jpg
  100.     cmp testimg.ppm testout.ppm
  101.     cmp testimg.jpg testout.jpg
  102.  
  103.  
  104. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h 
  105. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h 
  106. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h 
  107. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h 
  108. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h 
  109. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h 
  110. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c 
  111. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h 
  112. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h 
  113. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h 
  114. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h 
  115. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h 
  116. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h 
  117. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h 
  118. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h 
  119. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c 
  120. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h 
  121. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h 
  122. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h 
  123. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h 
  124. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h 
  125. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h 
  126. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h 
  127. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h 
  128. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h 
  129. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h 
  130. jvirtmem.o : jvirtmem.c jinclude.h jconfig.h jpegdata.h 
  131. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h 
  132. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h 
  133. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h 
  134. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h 
  135. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h 
  136. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h 
  137. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h 
  138. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h 
  139. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h 
  140. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h 
  141.